package kuonjisai.swing;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

public class SwingAboutDialog extends JDialog {

	public SwingAboutDialog() {
		
		setModal( true );
		JPanel contentPane = new JPanel( new BorderLayout() ); // 패널생성
		contentPane.setBorder( new EmptyBorder( 5, 5, 5, 5)); // 여백
		setContentPane(contentPane); // 설정
		setSize( 450, 350 );	// 크기
		setLocationRelativeTo( null ); 		// 가운데 출력
		setTitle( "프로젝트 정보");
		setVisible(true); 										//화면에 표시
		
		
		
		
		
		
		
	}
	/*public SwingAboutDialog( JFrame parent) {
		super ( parent, true );
		setSize( 800, 600);
		setTitle( "SwingProject Dialog");
		
		setVisible( true );
		setModal( true );
		setModalityType(DEFAULT_MODALITY_TYPE);		
		
		
	}*/
	
	
} // SwingAboutDialog

/*class MenuActionListener implements ActionListener {

	private JFrame p = null; 
	
	public MenuActionListener( JFrame p ) {
		this.p = p;
	}
	

	@Override
	public void actionPerformed(ActionEvent e) {
		new SwingAboutDialog( p );
		
	}
	
	
	
	
}
*/